package net.zisen.cloud.ping.user.client;

import net.zisen.cloud.base.msg.ResultMsg;
import net.zisen.cloud.ping.user.fallback.UserServiceFallback;
import net.zisen.cloud.ping.user.model.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author tim
 */
@FeignClient(value = "PING-USER-PROVIDER", fallbackFactory = UserServiceFallback.class)
public interface UserServiceClient {


    /**
     * 注册用户
     *
     * @param user
     * @return
     * @author time
     */
    @RequestMapping(value = "register/user", method = RequestMethod.POST)
    ResultMsg registerUser(@RequestBody User user);


}
